package cn.zzuisa.deutsch.utils;

import cn.zzuisa.deutsch.entity.Member;
import java.util.HashMap;
import java.util.Map;

public class MemberSessionKeyMap {

	public MemberSessionKeyMap() {};

	public static final Map<String, Member> USER_SESSION_KEYS = new HashMap<>();

	public static void put(String sessionKey, Member info) {
		synchronized(USER_SESSION_KEYS) {
			USER_SESSION_KEYS.put(sessionKey, info);
		}
	}

	public static void rm(String sessionKey) {
		synchronized(USER_SESSION_KEYS) {
			USER_SESSION_KEYS.remove(sessionKey);
		}
	}

}
